public class test1 {
    public static void main(String[] args) {
        Animal animal = new Cat();
        animal.eat();
        animal.call();
        System.out.println("----------");
        animal =new Dog();
        animal.eat();
        animal.call();
    }

}
